
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/site.master" AutoEventWireup="true"  CodeFile="TecajValute.aspx.cs" Inherits="TecajValute" Title="TecajValute List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Tecaj Valute List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" Visible="false" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
			AutoGenerateColumns="False"					
			OnSelectedIndexChanged="GridView_SelectedIndexChanged"
			DataSourceID="TecajValuteDataSource"
			DataKeyNames="Id"
			AllowMultiColumnSorting="false"
			DefaultSortColumnName="" 
			DefaultSortDirection="Ascending"	
			ExcelExportFileName="Export_TecajValute.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:TemplateField HeaderText="Id Valuta">
				<ItemTemplate>
						<asp:Repeater ID="Id1" runat="server" DataSourceID="ValutaFilter1">
							<ItemTemplate>
								<%# Eval("Naziv") %>
							</ItemTemplate>
						</asp:Repeater>

						<data:EntityDataSourceFilter ID="ValutaFilter1" runat="server"
							DataSourceID="ValutaDataSource1"
							Filter='<%# String.Format("Id = {0}", Eval("IdValuta")) %>'
						/>
					</ItemTemplate>
				</asp:TemplateField>


				<asp:BoundField DataField="Srednji" HeaderText="Srednji" SortExpression="Srednji"  />
				<asp:BoundField DataField="Kupovni" HeaderText="Kupovni" SortExpression="Kupovni"  />
				<asp:BoundField DataField="Prodajni" HeaderText="Prodajni" SortExpression="Prodajni"  />
				<asp:BoundField DataField="DatumObjave" HeaderText="Datum Objave" SortExpression="DatumObjave"  />
				<asp:TemplateField HeaderText="Id Banka">
				<ItemTemplate>
						<asp:Repeater ID="Id2" runat="server" DataSourceID="BankaFilter2">
							<ItemTemplate>
								<%# Eval("Naziv") %>
							</ItemTemplate>
						</asp:Repeater>

						<data:EntityDataSourceFilter ID="BankaFilter2" runat="server"
							DataSourceID="BankaDataSource2"
							Filter='<%# String.Format("Id = {0}", Eval("IdBanka")) %>'
						/>
					</ItemTemplate>
				</asp:TemplateField>


				<asp:BoundField DataField="DatumPrimjene" HeaderText="Datum Primjene" SortExpression="DatumPrimjene"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No TecajValute Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnTecajValute" OnClientClick="javascript:location.href='/NetROS.Tiers.website/admin/TecajValuteEdit.aspx'; return false;" Text="Add New"></asp:Button>
			
		<data:ValutaDataSource ID="ValutaDataSource1" runat="server"
			SelectMethod="GetAll"
		/>

		<data:BankaDataSource ID="BankaDataSource2" runat="server"
			SelectMethod="GetAll"
		/>

		<data:TecajValuteDataSource ID="TecajValuteDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:TecajValuteDataSource>
	    		
</asp:Content>



